from model.uml_element import UmlElement
from model.uml_xmi_info import UmlXmiInfo


class UmlGeneralization(UmlElement):
    def __init__(self) -> None:
        super().__init__(UmlXmiInfo.type_generalization)
        self.general: str = ""

    def to_json(self) -> dict[str, object]:
        json: dict = super().to_json()
        json["general"] = self.general

        return json
